package tk.mybatis.springboot.mapper;

import tk.mybatis.springboot.spider.entity.ErrorEntity;
import tk.mybatis.springboot.spider.entity.ImgsEntity;
import tk.mybatis.springboot.spider.entity.ImowProductEntity;
import tk.mybatis.springboot.spider.entity.ProductEntity;
import tk.mybatis.springboot.util.MyMapper;

import java.util.List;

/**
 * Created by xlp on 2017/3/13.
 */
public interface YMapper extends MyMapper<ProductEntity> {
    Boolean insertGkm(ProductEntity productEntity);

    Boolean insertImow(ImowProductEntity productEntity);


    List<String> getErrorLink();

    /**
     * 删除已经重试的链接
     */
    Boolean deleteErrorLink();

    /**
     * 标记重试的链接
     */
    Boolean setRetry();

    /**
     * 保存商品图片
     */
    Boolean saveProductImg(ImgsEntity imgsEntity);

    /**
     * /**
     * 保存失败链接
     */
    Boolean saveErrorLink(ErrorEntity errorEntity);
}
